package nancal.mp.db.mongo.entity

import nancal.mp.db.mongo.base.wx.OpenIdName
import nancal.mp.db.mongo.base.wx.OpenIdNameUrl
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.model.BaseMarkEntity
import org.springframework.data.mongodb.core.mapping.Document


//用户银行卡信息  提现时需要
@Document
@DbEntityGroup("finance")
data class BankCard(
        var createBy: OpenIdName = OpenIdName(),
        var realname: String = "",
        var phoneNumber: String = "",
        var bankName: String = "",
        var bankNumber: String = "",
        var bname: String = "",
        var bankZhiName: String,
        var bankCode: String = "",       //银行代码
        var cardType: String = "",    //PC   信用卡      DC  储蓄卡
        var flag: Boolean = false    //是否弃用
) : BaseMarkEntity()




//用户余额
@Document
@DbEntityGroup("finance")
data class SysMoney(
        var createBy: OpenIdNameUrl = OpenIdNameUrl(),     //包含头像信息  openid 和  name  logo 三个
        var money: Int = 0,         // 总
        var balance: Int = 0,       // 可用余额
        var cashMoney: Int = 0,     // 提现中金额
        var flag: Boolean = false    //是否可用
) : BaseMarkEntity()


